<?php
$this->breadcrumbs=array(
	'Search',
);
?>
<h1><?php echo $this->id . '/' . $this->action->id; ?></h1>

<?php $form = $this->beginWidget('CActiveForm', array(
    'id'=>'user-form',
	'enableAjaxValidation'=>true,
    'enableClientValidation'=>true,
	'action'=>Yii::app()->createUrl('Search/Search'),
	'method'=>'get',
)); ?>
<div class="row">
    <?php echo CHtml::label('Name', 'id_name') ?>
    <?php echo CHtml::textField('name','') ?>
</div>
<div class="row">
    <?php echo CHtml::label('Description', 'id_description') ?>
    <?php echo CHtml::textArea('description','',array('cols'=>5,'rows'=>6)) ?>
</div>
<div class="row">
    <?php echo CHtml::label('Author', 'id_author') ?>
    <?php echo CHtml::textField('author','') ?>
</div>
<div class="row">
    <?php echo CHtml::label('Points', 'id_point') ?>
    <?php echo CHtml::dropDownList('point',0,array(
	1=>'1',
	2=>'2',
	3=>'3',
	4=>'4',
	5=>'5',
	6=>'6',
	7=>'7',
	8=>'8',
	9=>'9',
	10=>'10',
	)) ?>
	<?php echo CHtml::dropDownList('option','<',array(
	'<'=>'Less',
	'='=>'Equal',
	'>'=>'Greater',
	)) ?>
</div>
	<div class="row">
		<?php echo chtml::Label('Book Genres','id_bookgenres');?>
		<?php echo chtml::dropDownList('genres','0',array(
	'0'=>'Programming',
	'1'=>'Java',
	'2'=>'C#',
	'3'=>'C++',
	'4'=>'Joomla',
	'5'=>'Graphic',
	'6'=>'Develop Game',
	'7'=>'Other',
	'8'=>'All Books',
	));?>
	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton('Search'); ?>
	</div>
	
<?php $this->endWidget(); ?>


